import axios from 'axios';
//更新路由
let edit = (route_id,data) => axios.put(`/route/${route_id}`, data);
//删除路由
let remove = (route_id,params) => axios.delete(`/route/${route_id}`, {params});
// 添加新的路由
let add = (data) => axios.post('/route', data);
// 获取所有路由权限
let all = (params) => axios.get('/route/all', { params });
//获取子级路由
let sub = (params) => axios.get('/route/sub', { params });
export default {
	remove,
	edit,
	all,
	add,
    sub
}